import request from '@/utils/request'

export function getListApi(data) {
    return request({
        url: '/ingredient',
        method: 'get',
        params: data
    })
}


export function removeApi(data) {
    return request({
        url: '/ingredient/remove',
        method: 'get',
        params: data
    })
}

export function addApi(data) {
    return request({
        url: '/ingredient',
        method: 'post',
        data
    })
}


export function editApi(data) {
    return request({
        url: '/ingredient/edit',
        method: 'post',
        data
    })
}


